﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BasicData.aspx.cs" Inherits="XMK.Tadong.Web.Views.SJCJDB.BasicData" EnableEventValidation="false"  %>

<%@ Register TagPrefix="cc1" Namespace=" System.Web.UI.WebControls" Assembly="ApplactionControls" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register assembly="FarPoint.Web.Spread, Version=7.40.20141.0, Culture=neutral, PublicKeyToken=327c3516b1b18457" namespace="FarPoint.Web.Spread" tagprefix="FarPoint" %>
<%--<%@ Register TagPrefix="farpoint" Namespace="FarPoint.Web.Spread" Assembly="FarPoint.Web.Spread" %>--%>
<%--<!Doctype html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">--%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head id="Head1" runat="server">

    <title></title>
    <link href="../Common/CSS/StyleSheet.css" rel="stylesheet" type="text/css" />
    <%--<link href="../Common/CSS/Default.css" rel="stylesheet" type="text/css" />--%>
    <style type="text/css">
        html
        {
            overflow-x: hidden;
            overflow-y: auto;
        }     
         div.window { 
             position: absolute;
             width: 600px; height: 600px;
             border: outset gray 1px;
             background-color: black;
            }    
         div.ppWindow { 
             position: absolute;   
             left: 600px; 
             top: 0px; 
             border: outset blue 1px;
             visibility: visible; 
             /* display:none;*/
             z-index: 100;
              filter: alpha(opacity:0); 
            }         
          td.demoNoGrad
            {
	            border-right: black 1px solid;
	            font-weight: bold;
	            font-size: 12pt;
	            border-left: white 1px solid;
	            color: white;
	            background-color: #82b0f9;
	            text-align: center;
            }
        .style4
        {
            width: 983px;
            height: 79px;
        }
      </style>
    <script language="javascript" type="text/javascript">

        //添加farpoint隐藏列,设置隐藏列宽度为0,再隐藏客户端控件
        function FarpointControlInit() {
            FpSpread1_viewport2.style.display = "none"; // 具体数据 
            FpSpread1_fcht.style.display = "none"; //数据表头
        }

        //打开一个类似Form的对话框,计算界面
        function OpenFormWindow(x, y) {

            //显示待隐藏的窗口
            var ppObj = document.getElementById("ppWindow");
            ppObj.style.display = '';
            ppObj.style.visibility = 'visible';
            //设置窗口显示的起点位置
            ppObj.style.left = window.screen.availWidth / 2 - 200;   //x +10;
            ppObj.style.top = window.screen.availHeight / 2 - 100;  // y + 300;

            ObjectFlashIn(ppObj, 100, false, 5);
        }

        //关闭一个类似Form的对话框
        function CloseFormWindow() {
            //关闭对话框
            var ppObj = document.getElementById("ppWindow");
            ppObj.style.display = 'none';
            ObjectFlashOut(ppObj, 0, false, 5);
        }

        function SpreadActiveRowChanged() {
            var ActiveRowIndex = FpSpread1.ActiveRow;
            if (ActiveRowIndex > -1) {
                var FieldCount = document.all["FieldCount"].value;
                k = 0;
                for (i = 0; i < FieldCount; i++) {
                    var txtname = "txt_" + i;
                    if (document.all[txtname]) {
                        var h = document.all[txtname];

                        if ((h.attributes["type"] != undefined) && (h.attributes["type"].value == "checkbox")) {
                            var ivalue = FpSpread1.GetValue(ActiveRowIndex, k++);
                            //  alert(ivalue)
                            if (ivalue == "true")
                                h.checked = 1;
                            else
                                h.checked = 0;

                        }
                        else {
                            h.value = FpSpread1.GetValue(ActiveRowIndex, k++);

                        }

                    }
                }

                var FpSpread = document.all["FpSpread1_viewport"];

                for (i = 0; i < FpSpread.rows.length; i++) {
                    if (i == ActiveRowIndex) {
                        FpSpread.rows(i).style.backgroundColor = 'Linen';
                    }
                    else
                        FpSpread.rows(i).style.backgroundColor = 'white';
                }

                var FpSpread2 = document.all["FpSpread1_viewport2"];

                if (FpSpread2 == "undefined" || FpSpread2 == null)
                    return;
                else {
                    for (i = 0; i < FpSpread2.rows.length; i++) {
                        if (i == ActiveRowIndex) {
                            FpSpread2.rows(i).style.backgroundColor = 'Linen';
                        }
                        else
                            FpSpread2.rows(i).style.backgroundColor = 'white';
                    }
                }
            }
        }

        function AddNewData() {
            var i = FpSpread1.GetRowCount();

            var FieldCount = document.all["FieldCount"].value;
            FpSpread1.Add(i, 1);
            FpSpread1.SetActiveCell(i, 0);
            FpSpread1.ActiveRow = i;
            SpreadActiveRowChanged();

            for (i = 0; i < FieldCount; i++) {
                if (document.all[txtname]) {
                    var txtname = "txt_" + i;
                    var input = document.getElementById(txtname);
                    if (input.getAttribute('disabled')) {
                        input.removeAttribute('disabled');
                    }
                }
            }
        }
        //输入框控制只能够输入数字
        function onlyNum(obj) {
            //控制多个小数点的输入       
            var objs = obj.value.split(".");
            if (objs.length == 2 && event.keyCode == 190)
                event.returnValue = false;
            else {
                //控制只输入数字和小数点  
                if (!((event.keyCode >= 48 && event.keyCode <= 57) || (event.keyCode >= 96 && event.keyCode <= 105) || event.keyCode == 8 || event.keyCode == 9 || event.keyCode == 46 || event.keyCode == 190 || event.keyCode == 110 || event.keyCode == 37 || event.keyCode == 39))
                    event.returnValue = false;
            }
        }
        //表单数据与网格动态绑定
        function BindDataToGrid(obj, k, DataType) {

            var ActiveRowIndex = FpSpread1.ActiveRow;
            if (obj.value != "") {
                // alert(obj.checked);
                if (obj.type != 'checkbox') {
                    if (DataType == "N") {
                        FpSpread1.SetValue(ActiveRowIndex, k, parseFloat(obj.value), "");
                    }
                    else {
                        FpSpread1.SetValue(ActiveRowIndex, k, obj.value, "");
                    }
                }
                else {
                    if (obj.checked)
                        FpSpread1.SetValue(ActiveRowIndex, k, "true", "");
                    else
                        FpSpread1.SetValue(ActiveRowIndex, k, "false", "");
                }
            }
            else {
                FpSpread1.SetValue(ActiveRowIndex, k, obj.value, "");
            }
        }


        var rowValue = 0;  //行计数器
        var colValue = 0;  //列计数器
        var isChange = false;
        var value_temp;
        var DataFrame = null;
        var x = 0;
        var y = 0;
        var ActiveRowIndex = -1;
        var ActiveColIndex = -1;


        //双击待计算行,弹出计算界面
        function spreaddblclick() {
            ActiveColIndex = FpSpread1.ActiveCol;
            ActiveRowIndex = FpSpread1.ActiveRow;

            if (ActiveColIndex == "-1" || ActiveRowIndex == "-1") {
                return;
            }
            var BDM = document.all["BDM"].value;
            var FieldCount = document.all["hidVisibleFieldCount"].value;

            if (BDM == "" || FieldCount == 0) {
                return;
            }
            else {
                for (i = 0; i < FieldCount; i++) {
                    if (ActiveColIndex == i) {

                        //  x = event.x;
                        //   y = event.y;
                        //获取待计算参数
                        //  PageMethods.GetDataFieldFactor(h.title + "," + h.zdid, GetDataFieldFactorList);


                        var hidPop = document.all["hidPopField"];
                        if (hidPop) {
                            var Pop = hidPop.value;
                            if (Pop.indexOf(',' + (i + 1).toString() + ':') >= 0) {
                                //Pop形如  ,9:TEXT-YC_TEXT,8:FILE-YC_FILE,
                                var pTmp = Pop.substring(1, Pop.length - 1);
                                var split1 = pTmp.split(',');
                                for (m = 0; m < split1.length; m++) {
                                    var split2 = split1[m].split(':');
                                    if (split2[0] == (i + 1).toString()) {
                                        ShowSubWin(split2[1]);
                                        return;
                                    }
                                }

                                // alert(Pop);
                            }
                            else
                                return;

                        }
                        else
                            return;

                    }
                }
            }
        }

        //以下两个函数ShowSubWin 和 ShowSubWin_Button的功能是一样的，都是处理弹出窗口录入，ShowSubWin是在FARPOINT单元格中鼠标双击时触发，ShowSubWin_Button是FORM表单上的对应按钮触发
        function ShowSubWin(p_Type) {
            var oldValue = FpSpread1.GetValue(ActiveRowIndex, ActiveColIndex);
            var split1 = p_Type.split('-'); //TEXT-YC_TEXT
            var strType = split1[0];
            var strSubTab = split1[1];
            var strColName = split1[2];
            var strPage;
            if (strType == "TEXT") {
                strPage = "CommonDataAdmin_TEXT.aspx";
            }
            else if (strType == "FILE") {
                strPage = "CommonDataAdmin_FILE.aspx";
            }
            //alert(strPage + "?SUBTAB=" + strSubTab + "&ID=" + oldValue);
            var strReturn = showModalDialog("frame.htm", strPage + "?SUBTAB=" + strSubTab + "&ID=" + oldValue + "&COLNAME=" + strColName, "font-size:10px;dialogWidth:510px;dialogHeight:330px;status=no;center=yes;resizable=no;");
            if ((strReturn == "N/A") || (strReturn == undefined)) {

            }
            else {
                FpSpread1.SetValue(ActiveRowIndex, ActiveColIndex, strReturn, ""); // FpSpread1.SetActiveCell(ActiveRowIndex, ActiveColIndex - 1);

            }

        }

        function ShowSubWin_Button(obj, k, popWin) {
            var hid = document.getElementById(obj);
            var oldValue = hid.value;
            // alert(oldValue);
            var split1 = popWin.split('-'); //TEXT-YC_TEXT
            var strType = split1[0];
            var strSubTab = split1[1];

            var strPage;
            if (strType == "TEXT") {
                strPage = "CommonDataAdmin_TEXT.aspx";
            }
            else if (strType == "FILE") {
                strPage = "CommonDataAdmin_FILE.aspx";
            }
            //alert(strPage + "?SUBTAB=" + strSubTab + "&ID=" + oldValue);
            var strReturn = showModalDialog("frame.htm", strPage + "?SUBTAB=" + strSubTab + "&ID=" + oldValue, "font-size:10px;dialogWidth:510px;dialogHeight:330px;status=no;center=yes;resizable=no;");
            if ((strReturn == "N/A") || (strReturn == undefined)) {

            }
            else {
                hid.value = strReturn;
                var ActiveRowIndex = FpSpread1.ActiveRow;
                FpSpread1.SetValue(ActiveRowIndex, k, strReturn, "");

            }

        }

        function btnOpen(obj, k, popWin) {
            ShowSubWin_Button(obj, k, popWin);
            //  alert(obj + "  " + k + "  " + popWin);

        }



        //双击待计算行,弹出计算界面
        function GetDataFieldFactorList(obj) {
            if (obj == "")
                return;
            else {
                document.all["ppWindow1"].innerHTML = obj;
                OpenFormWindow(x, y);
            }
        }
        //计算待计算字段数值
        function btnConfrim(rowcount, fieldid) {

            if (rowcount == "" || fieldid == "") {
                return;
            }
            else {
                var rows = parseInt(rowcount);
                var NullList = "";
                for (i = 0; i < rows; i++) {
                    var txtname = "zb_lab_" + i;
                    var h = document.all[txtname];
                    if (h.value == "") {
                        if (NullList == "") {
                            NullList = h.title;
                        }
                        else {
                            NullList = NullList + "," + h.title;
                        }

                    }
                }
                if (NullList != "") {
                    alert(NullList + "值不能够为空,请先填写!");
                    return;
                }
                var zbdm = "";
                var zbsz = "";
                for (i = 0; i < rows; i++) {
                    var txtname = "zb_lab_" + i;
                    var h = document.all[txtname];
                    if (zbdm == "") {
                        zbdm = h.name;
                    }
                    else {
                        zbdm = zbdm + "," + h.name;
                    }

                    if (zbsz == "") {
                        zbsz = h.value;
                    }
                    else {
                        zbsz = zbsz + "," + h.value;
                    }
                }
                //获取待计算参数
                PageMethods.ComunicateDataField(fieldid + "#" + zbdm + "#" + zbsz, GetComunicateResult);
            }
        }
        function GetComunicateResult(result) {
            if (confirm("计算结果为:" + result + "\r\n" + "你确定要应用该计算结果吗?")) {
                FpSpread1.SetValue(ActiveRowIndex, ActiveColIndex, result, "");

                var FpSpread2 = document.all["FpSpread1_viewport2"];

                var fkcols = 0;
                if (FpSpread2 == "undefined" || FpSpread2 == null)
                    fkcols = 0;
                else {
                    fkcols = FpSpread2.cols;
                }

                var FpSpread = document.all["FpSpread1_viewport"];
                for (i = 0; i < FpSpread.rows.length; i++) {
                    if (i == ActiveRowIndex) {
                        FpSpread.rows(i).cells[ActiveColIndex - fkcols].style.color = 'Blue';
                    }
                }

                CloseFormWindow();
            }
        }
        //关闭计算界面
        function btnCancel() {
            CloseFormWindow();
        }
        function dataChanged() {
            var btncacel = document.all("ImBtn_cancle");
            var btnsave = document.all("ImBtn_save");
            SetEnable(btncacel, "true");
            SetEnable(btnsave, "true");
            //--------------------------------------将改变的数据放入固定列
            /*
            var rowValue=0;  //行计数器
            var colValue=0;  //列计数器
            var rowValueCount=0;  //已复制的行数
            var colValueCount=0;  //已复制的列数
            */
            //-------------------------------------------------------
            var iMess = window.clipboardData.getData("Text");
            var countrows = 1;
            var countcols = 1;
            var maxcols = 1;
            if (iMess != null && iMess != "") {
                for (var i = 0; i < iMess.length; i++) {
                    var split = iMess.substring(i, i + 1);
                    switch (split) {
                        case "\r":
                            if (countcols > maxcols)
                                maxcols = countcols;
                            countcols = 0;
                            if (i < iMess.length - 3)
                                countrows = countrows + 1;
                            break;
                        case "\t":
                            countcols = countcols + 1;
                            break;

                    }
                }
            }
            countcols = maxcols;
            //获取第几列数据需要设置为固定列
            var spread = document.all("FpSpread1");
            var f = document.Form1;

            var span = document.all("FpSpread1_rowHeader");
            var table = span.firstChild;

            var row = spread.ActiveRow;
            var col = spread.ActiveCol;

            var fixcol = f.hid_fixcolumn.value;
            var Values = fixcol.split("#");
            for (var i = 0; i < Values.length; i++) {
                if (spread.ActiveCol + colValue == Values[i] && Values[i] != "") {
                    var ModifyValue = spread.GetValue(spread.ActiveRow + rowValue, spread.ActiveCol + colValue);

                    table.rows(spread.ActiveRow + rowValue + 1).cells(i + 1).innerText = ModifyValue;
                    break;
                }
            }
            colValue = colValue + 1;
            if ((colValue % countcols) == 0) {
                colValue = 0;
                rowValue = rowValue + 1;
            }
            //修改数据后设置颜色
            var view_row = document.all("FpSpread1_view");
            var table_row = view_row.firstChild;
            var tr_row = table_row.rows(row + 1);
            //tr_row.style.backgroundColor = "LightGreen";
            //            if (tr_row.style.backgroundColor != "LightGreen" && tr_row.style.backgroundColor != "Orange")
            //                tr_row.style.backgroundColor = "LightGoldenrodYellow";

        }

        //即使在通一行不同CELL间切换也会触发此事件
        function selectChanged() {

            SpreadActiveRowChanged();

            var btnupdate = document.all("ImBtn_update");
            var btncopy = document.all("ImBtn_copy");
            var btncut = document.all("ImBtn_cut");
            var btnpaste = document.all("ImBtn_paste");
            var btndelete = document.all("ImBtn_delete");
            var btnadd = document.all("ImBtn_add");
            var btnsave = document.all("ImBtn_save");
            var btnpasteadd = document.all("ImBtn_pasteadd");

            SetEnable(btnupdate, "true");
            SetEnable(btncopy, "true");
            SetEnable(btncut, "true");
            SetEnable(btnpaste, "true");
            SetEnable(btnsave, "true");
            if (btnadd.Enable == "true") {
                SetEnable(btndelete, "true");
                SetEnable(btnpasteadd, "true");
            }
            else {
                SetEnable(btndelete, "false");
                SetEnable(btnpasteadd, "false");
            }
            //----------------------------------------------设置固定列
            rowValue = 0;  //行计数器
            colValue = 0;  //列计数器

            //add by qiuban 20061017
            //为批量删除数据,客户端记录所选中的行和行数
            var rg = FpSpread1.GetSelectedRange();
            document.all["Selectrows"].value = rg.row + "#" + rg.col + "#" + rg.rowCount + "#" + rg.colCount;
        }
        function spreadEditStart() {

            var btncopy = document.all("ImBtn_copy");
            var btncut = document.all("ImBtn_cut");
            var btnpaste = document.all("ImBtn_paste");
            var btndelete = document.all("ImBtn_delete");
            var btnpasteadd = document.all("ImBtn_pasteadd");

            SetEnable(btncopy, "false");
            SetEnable(btncut, "false");
            SetEnable(btnpaste, "false");
            SetEnable(btndelete, "false");
            //  SetEnable(btnpasteadd,"false") ;

        }
        function selectChanged_message() {

            if (document.all["hid_activesheet"].value == "删除数据表") {
                var rg = FpSpread_Error.GetSelectedRange();

                document.all["hid_delselect"].value = rg.row + "#" + rg.col + "#" + rg.rowCount + "#" + rg.colCount;
                window.status = rg.row + "#" + rg.col + "#" + rg.rowCount + "#" + rg.colCount;
                //------------------------------------
                var bdelreturn = document.all("ImBtn_delreturn");
                SetEnable(bdelreturn, "true");
            }
        }

        ///////////////////////////////////////////////////////////////////////////////////////////////////////dhn

        function SelectChange(sender) {
        }
        function Paste() {

            var f = document.Form1;

            if (event.srcElement.id == "ImBtn_key") {
                CheckKey();
            }
            if (event.srcElement.id == "ImBtn_update") {
                isChange = false;

            }
            if (event.srcElement.id == "ImBtn_cancle") {
                isChange = false;

            }
            if (event.srcElement.id == "ImBtn_add") {
                isChange = false;
                AddNewData();
            }

            if (event.srcElement.id == "ImBtn_delete") {
                isChange = false;
                if (event.srcElement.Enable == "true")
                    if (confirm("你确定要删除记录吗?")) {
                        // var spread = document.all("EditGrid0");  
                        //  spread.Delete();
                        __doPostBack('ImBtn_delete', '');
                    }
            }
            if (event.srcElement.id == "ImBtn_pasteadd") {
                isChange = false;
                var Imgbtn = document.all("ImBtn_pasteadd");
                if (Imgbtn.Enable == "true") {
                    f.hidKid.value = window.clipboardData.getData("Text");
                    __doPostBack('LinkButton1', '');
                }

            }
            if (event.srcElement.id == "ImBtn_save") {
                isChange = false;
            }
            if (event.srcElement.id == "ImBtn_copy") {
                var spread = document.all("FpSpread1");
                spread.Copy();

            }
            if (event.srcElement.id == "ImBtn_cut") {
                var spread = document.all("FpSpread1");
                spread.Clear();
            }
            if (event.srcElement.id == "ImBtn_paste") {
                var spread = document.all("FpSpread1");
                spread.Paste();
            }
            if (event.srcElement.id == "ShowTip")//
            {
                var spread = document.all("FpSpread1");
                spread.SetShowPrikeyTip(false);
            }

        }

        /*
        函数作用: 利用DIV的特性,创建一个满屏的窗口
        参数: 
        argWindowID: 窗口的ID
        argOpacity: 窗口的不透明度(取值范围: 0--100. 0为完全透明, 100为完全不透明.)
        argBackColor: 窗口的背景色
        argZ_Index: 窗口的第三维高度
        */
        function CreateDivFullWindow(argWindowID, argOpacity, argBackColor, argZ_Index) {
            return
            "<div"
                       + " id=\"" + argWindowID + "\""
                       + " style=\"position: absolute; position: absolute; left: 0px; top: 0px;"
                       + " filter: alpha(opacity:" + argOpacity + ");"
                       + " height: " + screen.availHeight + "px";
+" width: " + screen.availWidth + "px";
+" background-color: " + argBackColor + ";"
                       + " z-index: " + argZ_Index + "; \"></div>";
        }
        /* 函数作用: 利用CSS的Filter滤镜实现淡入的效果
        参数:
        argObject: 要显示的对象
        argOpacity: 对象的不透明度(取值范围: 0--100. 0为完全透明, 100为完全不透明.)
        argIsFlash: 是否需要动画显示
        argFlashSpeed: 对象显示的速度
        argTimeInterval: 对象显示的时间间隔
        */
        function ObjectFlashIn(argObject, argOpacity, argIsFlash, argFlashSpeed, argTimeInterval) {
            if ((argObject.filters.alpha.opacity < argOpacity) && (argIsFlash)) {
                argObject.filters.alpha.opacity += argFlashSpeed;
                window.setTimeout("ObjectFlashIn(" + argObject.id + ", " + argOpacity + ", " + argIsFlash + ", " + argFlashSpeed + ")", argTimeInterval);
            }
            else {
                argObject.filters.alpha.opacity = argOpacity;
                argObject.style.visibility = "visible";
            }
        }
        /* 利用CSS的Filter滤镜实现淡出的效果
        参数:
        argObject: 要淡出的对象
        argOpacity: 对象的不透明度(取值范围: 0--100. 0为完全透明, 100为完全不透明.)
        argIsFlash: 是否需要动画淡出
        argFlashSpeed: 对象淡出的速度
        argTimeInterval: 对象淡出的时间间隔
        */
        function ObjectFlashOut(argObject, argOpacity, argIsFlash, argFlashSpeed, argTimeInterval) {
            if ((argObject.filters.alpha.opacity > argOpacity) && (argIsFlash)) {
                argObject.filters.alpha.opacity -= argFlashSpeed;
                window.setTimeout("ObjectFlashOut(" + argObject.id + ", " + argOpacity + ", " + argIsFlash + ", " + argFlashSpeed + ")", argTimeInterval);
            }
            else {
                argObject.filters.alpha.opacity = argOpacity;
                argObject.style.visibility = "hidden";
            }
        }

        function ShowText() {

            alert(1);
        }

        //显示数据源配置页面
        function ShowDBSourceWin_Button() {
            var strReturn = window.showModalDialog("frame.htm", "ConfigDataSource.aspx", "font-size:10px;dialogWidth:650px;dialogHeight:560px;status=no;center=yes;resizable=no;");
            if (strReturn == "Y") {
                document.getElementById("btnRun").click();
            }

        }
        //选择忽略主键冲突
        function CheckKey() {
            var chkKey = document.all("chkIgnoreKeyConflict");
            chkKey.checked = !chkKey.checked;
        }
        //加载gis页面，计算页面高度


        function window.onload() {
            var spread = document.all("FpSpread1");
            if (spread != null) {
                spread.onDataChanged = dataChanged;
                spread.onSelectionChanged = selectChanged;
                spread.onEditStart = spreadEditStart;
                spread.ondblclick = spreaddblclick;
            }
            var spread_message = document.all("FpSpread_Error");
            if (spread_message != null) {
                spread_message.onSelectionChanged = selectChanged_message;
            }
        }
    </script>

</head>
<body onclick="Paste()">
    <form id="Form1" runat="server">
    <table width="98%" id="Table1" style="border-color:#b0c4de;height: 100%"  cellpadding="0"     border="1">
        <tr>
            <td align="left" colspan="5" style="height: 30px; width: 983px;" class="systemTr">
                <asp:Label ID="lblPath" runat="server"></asp:Label></td>
        </tr>
        <tr>
            <td colspan="5" align="left" style="width: 983px">
                <div style="width: 500px; height: 30px" runat="server" id="divExcel">
                <table border="0" width="100%">
                                <tr>
                                    <td style="width:530px" >
                                        <asp:FileUpload ID="FileUpload1" runat="server" Width="450px" Height="22px" CssClass="input1" />
                                    </td>
                                    <td style="width:100px" >
                                        <asp:Button ID="btnReadData" runat="server" Text="上传导入" 
                                            onclick="btnReadData_Click" CssClass="submit" />                                      
                                    </td>
                                    <td style="width:100px">
                                        <asp:HyperLink ID="hlExcelURL" runat="server" Width="93px" >下载模板</asp:HyperLink>
                                                                     
                                    </td>
                                    <td style="height: 29px">
                                    <input id="btnConfigDB" onclick="javascript:ShowDBSourceWin_Button();" type="button" value="配置数据源" class="submit" />
                                    
                                    </td>
                                    <td style="display:none"><asp:Button ID="btnRun" runat="server" OnClick="btnRun_Click" Height="0px" Width="0px" CssClass="display:none;" /></td>
                                </tr>
                            </table>
                </div>
            </td>
        </tr>
        <tr>
            <td colspan="5" style="width: 983px" >
                <asp:Literal ID="ltlModule" runat="server" Visible="True"></asp:Literal>
                <input id="FieldCount" type="hidden" runat="server" />
                <input id="BDM" type="hidden" runat="server" />
                <input id="Pkey" type="hidden" runat="server" />
                <asp:Panel ID="SelectPanel" Style="z-index: 105; left: 793px; position: absolute;
                    top: 20px" runat="server" Width="96px" Height="48px">
                    <asp:Label ID="Label1" runat="server" Width="64px"></asp:Label>
                    <input id="hidKid" style="width: 16px; height: 21px" type="hidden" size="1" name="hidKid"
                        runat="server">
                    <asp:linkbutton id="LinkButton1" runat="server" Visible="False" onclick="LinkButton1_Click">LinkButton</asp:linkbutton>
                    <input id="hid_fixcolumn" style="width: 16px; height: 22px" type="hidden" size="1"
                        name="hid_fixcolumn" runat="server"><input id="hid_delselect" style="width: 16px;
                            height: 22px" type="hidden" size="1" name="hid_delselect" runat="server">
                    <cc1:imagebottonex id="ImBtn_delete_active" runat="server" Height="15px" Width="15px"
                        Visible="False" BackColor="Control" Enable="True" AutoPostBack="True" DisableimageUrl="../../images/Delete.gif"
                        imageUrl="../../images/Delete.gif" ToolTip="刷新">
                    </cc1:imagebottonex>
                    <input id="hid_activesheet" style="width: 24px; height: 22px" type="hidden" size="1"
                        runat="server">
                    <input id="Selectrows" style="width: 16px; height: 21px" type="hidden" size="1" runat="server">
                  
                  <asp:HiddenField ID="hidVisibleFieldCount" runat="server" />
                    <asp:HiddenField ID="hidPopField" runat="server" />
                           <%-- <asp:Button ID="btnRun" runat="server" OnClick="btnRun_Click" Height="0px" Width="0px" CssClass="display:none;" />--%></asp:Panel>
            </td>
        </tr>
        <tr>
            <td colspan="5" style="width: 100%" >
                <div id="ToolBar" style="background-image: url(../../images/toolsbg.gif); width: 100%; border-bottom: gray thin solid;
                    height: 24px; background-color: #e3eedf" runat="server">
                    <table id="Table2" bordercolor="#b0c4de" cellpadding="0" style="height: 100%" border="0">
                        <tr>
                            <td style="width: 20px">
                                <cc1:imagebottonex id="ImBtn_cancle" runat="server" Width="16px" Height="16px" BackColor="#F0EEE6"
                                    Enable="True" AutoPostBack="True" DisableimageUrl="../../images/Cancel-d.gif" imageUrl="../../images/Cancel.gif"
                                    ToolTip="撤销修改">
                                </cc1:imagebottonex>
                            </td>
                            <td style="width: 20px">
                                <font face="宋体">
                                    <cc1:imagebottonex id="ImBtn_update" runat="server" Width="16px" Height="16px" BackColor="#F0EEE6"
                                        Enable="True" AutoPostBack="True" DisableimageUrl="../../images/Update-d.gif" imageUrl="../../images/update.gif"
                                        ToolTip="数据效验">
                                    </cc1:imagebottonex></font>
                            </td>
                            <td style="width: 5px">
                                <img alt="" src="../../images/spertor.gif">
                            </td>
                            <TD style="WIDTH: 20px">
								<cc1:imagebottonex id="ImBtn_pasteadd" runat="server" Height="16px" Width="16px" ToolTip="追加复制记录" imageUrl="../../images/Add.gif"
									DisableimageUrl="../../images/Add-d.gif" AutoPostBack="False" BackColor="#F0EEE6" onclick="ImBtn_pasteadd_Click"></cc1:imagebottonex></TD>
                            <td style="width: 20px">
                                <cc1:imagebottonex id="ImBtn_add" runat="server" Width="16px" Height="16px" BackColor="#F0EEE6"
                                    DisableimageUrl="../../images/new-d.gif" imageUrl="../../images/new-1.gif" ToolTip="追加单条记录">
                                </cc1:imagebottonex>
                            </td>
                            <td style="width: 20px">
                                <cc1:imagebottonex id="ImBtn_save" runat="server" Width="16px" Height="16px" BackColor="#F0EEE6"
                                    AutoPostBack="true" DisableimageUrl="../../images/Save-d.gif" imageUrl="../../images/Save.gif"
                                    ToolTip="保存数据">
                                </cc1:imagebottonex>
                            </td>
                            <td style="width: 20px">
                                <cc1:imagebottonex id="ImBtn_delete" runat="server" Width="16px" Height="16px" BackColor="#F0EEE6"
                                    AutoPostBack="False" DisableimageUrl="../../images/Delete-d.gif" imageUrl="../../images/Delete.gif"
                                    ToolTip="删除记录">
                                </cc1:imagebottonex>
                            </td>
                            <td style="width: 5px">
                                <img alt="" src="../../images/spertor.gif">
                            </td>
                            <td style="width: 20px">
                                <font face="宋体">
                                    <cc1:imagebottonex id="ImBtn_copy" runat="server" Width="16px" Height="16px" BackColor="#F0EEE6"
                                        AutoPostBack="False" DisableimageUrl="../../images/Copy-d.gif" imageUrl="../../images/Copy.gif"
                                        ToolTip="复制数据">
                                    </cc1:imagebottonex></font>
                            </td>
                            <td style="width: 20px">
                                <font face="宋体">
                                    <cc1:imagebottonex id="ImBtn_paste" runat="server" Width="16px" Height="16px" BackColor="#F0EEE6"
                                        AutoPostBack="False" DisableimageUrl="../../images/Paste-d.gif" imageUrl="../../images/Paste.gif"
                                        ToolTip="粘贴数据">
                                    </cc1:imagebottonex></font>
                            </td>
                            <td style="width: 20px">
                                <cc1:imagebottonex id="ImBtn_cut" runat="server" Width="16px" Height="16px" BackColor="#F0EEE6"
                                    AutoPostBack="False" DisableimageUrl="../../images/Cut-d.gif" imageUrl="../../images/Cut.gif"
                                    ToolTip="剪切数据">
                                </cc1:imagebottonex>
                            </td >
                            
                            <td style="width: 20px">
                                <asp:CheckBox id="chkIgnoreKeyConflict" runat="server" BackColor="#F0EEE6" Checked="True" ToolTip="忽略主键冲突：如果忽略主键冲突则保留老数据，忽略新数据。"></asp:CheckBox>
                            </td>
                            <td style="width: 20px">
                                <cc1:imagebottonex id="ImBtn_key" runat="server" Width="16px" Height="16px" BackColor="#F0EEE6"
                                    AutoPostBack="false" DisableimageUrl="../../images/bar_05.gif" imageUrl="../../images/bar_05.gif"
                                    ToolTip="忽略主键冲突：如果忽略主键冲突则保留老数据，忽略新数据。">
                                </cc1:imagebottonex>
                            </td>
                            
                            
                            <td style="width: 5px">
                                <img alt="" src="../../images/spertor.gif">
                            </td>
                            <td style="width: 40px">
                                <asp:Label ID="Label2" runat="server" Text="页行数"></asp:Label>
                            </td>
                            <td style="width: 40px">
                                <asp:TextBox ID="PageSize" runat="server" Width="40px" AutoPostBack="True" ToolTip="页行数"
                                    BorderStyle="Solid" BorderWidth="1px" OnTextChanged="PageSize_TextChanged">15</asp:TextBox>
                            </td>
                            <td style="width: 5px">
                                <img alt="" src="../../images/spertor.gif">
                            </td>
                            <td style="width: 80px">
                                <webdiyer:AspNetPager Width="80" AlwaysShow="true" ID="AspNetPager1" runat="server"
                                    PageSize="10" NumericButtonCount="3" ShowCustomInfoSection="Right" PagingButtonSpacing="0"
                                    CssClass="mypager" FirstPageText="first" LastPageText="end" NextPageText="next" PrevPageText="up"
                                    HorizontalAlign="Right" NumericButtonTextFormatString="[{0}]" OnPageChanging="ChangePage">
                                </webdiyer:AspNetPager>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        <tr>
            <td colspan="5" style="width: 100%" >
                <farpoint:FpSpread ID="FpSpread1" runat="server" BorderColor="Black" BorderStyle="Solid"
                    BorderWidth="1px" Height="350px" Width="100%" 
                    >

<Pager PageCount="15"></Pager>
                    <Sheets>
                        <farpoint:SheetView DesignString="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;&lt;Sheet&gt;&lt;Data&gt;&lt;RowHeader class=&quot;FarPoint.Web.Spread.Model.DefaultSheetDataModel&quot; rows=&quot;3&quot; columns=&quot;1&quot;&gt;&lt;AutoCalculation&gt;True&lt;/AutoCalculation&gt;&lt;AutoGenerateColumns&gt;True&lt;/AutoGenerateColumns&gt;&lt;ReferenceStyle&gt;A1&lt;/ReferenceStyle&gt;&lt;Iteration&gt;False&lt;/Iteration&gt;&lt;MaximumIterations&gt;1&lt;/MaximumIterations&gt;&lt;MaximumChange&gt;0.001&lt;/MaximumChange&gt;&lt;/RowHeader&gt;&lt;ColumnHeader class=&quot;FarPoint.Web.Spread.Model.DefaultSheetDataModel&quot; rows=&quot;1&quot; columns=&quot;4&quot;&gt;&lt;AutoCalculation&gt;True&lt;/AutoCalculation&gt;&lt;AutoGenerateColumns&gt;True&lt;/AutoGenerateColumns&gt;&lt;ReferenceStyle&gt;A1&lt;/ReferenceStyle&gt;&lt;Iteration&gt;False&lt;/Iteration&gt;&lt;MaximumIterations&gt;1&lt;/MaximumIterations&gt;&lt;MaximumChange&gt;0.001&lt;/MaximumChange&gt;&lt;/ColumnHeader&gt;&lt;DataArea class=&quot;FarPoint.Web.Spread.Model.DefaultSheetDataModel&quot; rows=&quot;3&quot; columns=&quot;4&quot;&gt;&lt;AutoCalculation&gt;True&lt;/AutoCalculation&gt;&lt;AutoGenerateColumns&gt;True&lt;/AutoGenerateColumns&gt;&lt;ReferenceStyle&gt;A1&lt;/ReferenceStyle&gt;&lt;Iteration&gt;False&lt;/Iteration&gt;&lt;MaximumIterations&gt;1&lt;/MaximumIterations&gt;&lt;MaximumChange&gt;0.001&lt;/MaximumChange&gt;&lt;SheetName&gt;Sheet1&lt;/SheetName&gt;&lt;/DataArea&gt;&lt;SheetCorner class=&quot;FarPoint.Web.Spread.Model.DefaultSheetDataModel&quot; rows=&quot;1&quot; columns=&quot;1&quot;&gt;&lt;AutoCalculation&gt;True&lt;/AutoCalculation&gt;&lt;AutoGenerateColumns&gt;True&lt;/AutoGenerateColumns&gt;&lt;ReferenceStyle&gt;A1&lt;/ReferenceStyle&gt;&lt;Iteration&gt;False&lt;/Iteration&gt;&lt;MaximumIterations&gt;1&lt;/MaximumIterations&gt;&lt;MaximumChange&gt;0.001&lt;/MaximumChange&gt;&lt;/SheetCorner&gt;&lt;ColumnFooter class=&quot;FarPoint.Web.Spread.Model.DefaultSheetDataModel&quot; rows=&quot;1&quot; columns=&quot;4&quot;&gt;&lt;AutoCalculation&gt;True&lt;/AutoCalculation&gt;&lt;AutoGenerateColumns&gt;True&lt;/AutoGenerateColumns&gt;&lt;ReferenceStyle&gt;A1&lt;/ReferenceStyle&gt;&lt;Iteration&gt;False&lt;/Iteration&gt;&lt;MaximumIterations&gt;1&lt;/MaximumIterations&gt;&lt;MaximumChange&gt;0.001&lt;/MaximumChange&gt;&lt;/ColumnFooter&gt;&lt;/Data&gt;&lt;Presentation&gt;&lt;HeaderGrayAreaColor&gt;#7999c2&lt;/HeaderGrayAreaColor&gt;&lt;AxisModels&gt;&lt;Column class=&quot;FarPoint.Web.Spread.Model.DefaultSheetAxisModel&quot; orientation=&quot;Horizontal&quot; count=&quot;4&quot;&gt;&lt;Items&gt;&lt;Item index=&quot;-1&quot;&gt;&lt;SortIndicator&gt;Ascending&lt;/SortIndicator&gt;&lt;/Item&gt;&lt;/Items&gt;&lt;/Column&gt;&lt;RowHeaderColumn class=&quot;FarPoint.Web.Spread.Model.DefaultSheetAxisModel&quot; defaultSize=&quot;40&quot; orientation=&quot;Horizontal&quot; count=&quot;1&quot;&gt;&lt;Items&gt;&lt;Item index=&quot;-1&quot;&gt;&lt;Size&gt;40&lt;/Size&gt;&lt;SortIndicator&gt;Ascending&lt;/SortIndicator&gt;&lt;/Item&gt;&lt;/Items&gt;&lt;/RowHeaderColumn&gt;&lt;ColumnHeaderRow class=&quot;FarPoint.Web.Spread.Model.DefaultSheetAxisModel&quot; defaultSize=&quot;22&quot; orientation=&quot;Vertical&quot; count=&quot;1&quot;&gt;&lt;Items&gt;&lt;Item index=&quot;-1&quot;&gt;&lt;Size&gt;22&lt;/Size&gt;&lt;/Item&gt;&lt;/Items&gt;&lt;/ColumnHeaderRow&gt;&lt;ColumnFooterRow class=&quot;FarPoint.Web.Spread.Model.DefaultSheetAxisModel&quot; defaultSize=&quot;22&quot; orientation=&quot;Vertical&quot; count=&quot;1&quot;&gt;&lt;Items&gt;&lt;Item index=&quot;-1&quot;&gt;&lt;Size&gt;22&lt;/Size&gt;&lt;/Item&gt;&lt;/Items&gt;&lt;/ColumnFooterRow&gt;&lt;/AxisModels&gt;&lt;StyleModels&gt;&lt;RowHeader class=&quot;FarPoint.Web.Spread.Model.DefaultSheetStyleModel&quot; Rows=&quot;3&quot; Columns=&quot;1&quot;&gt;&lt;AltRowCount&gt;2&lt;/AltRowCount&gt;&lt;DefaultStyle class=&quot;FarPoint.Web.Spread.NamedStyle&quot; Parent=&quot;RowHeaderDefault&quot; /&gt;&lt;ConditionalFormatCollections /&gt;&lt;/RowHeader&gt;&lt;ColumnHeader class=&quot;FarPoint.Web.Spread.Model.DefaultSheetStyleModel&quot; Rows=&quot;1&quot; Columns=&quot;4&quot;&gt;&lt;AltRowCount&gt;2&lt;/AltRowCount&gt;&lt;DefaultStyle class=&quot;FarPoint.Web.Spread.NamedStyle&quot; Parent=&quot;ColumnHeaderDefault&quot;&gt;&lt;Background class=&quot;FarPoint.Web.Spread.Background&quot;&gt;&lt;BackgroundImageUrl&gt;SPREADCLIENTPATH:/img/chbg.gif&lt;/BackgroundImageUrl&gt;&lt;SelectedBackgroundImageUrl&gt;SPREADCLIENTPATH:/img/chm.png&lt;/SelectedBackgroundImageUrl&gt;&lt;/Background&gt;&lt;/DefaultStyle&gt;&lt;ConditionalFormatCollections /&gt;&lt;/ColumnHeader&gt;&lt;DataArea class=&quot;FarPoint.Web.Spread.Model.DefaultSheetStyleModel&quot; Rows=&quot;3&quot; Columns=&quot;4&quot;&gt;&lt;AltRowCount&gt;2&lt;/AltRowCount&gt;&lt;DefaultStyle class=&quot;FarPoint.Web.Spread.NamedStyle&quot; Parent=&quot;DataAreaDefault&quot; /&gt;&lt;ConditionalFormatCollections /&gt;&lt;/DataArea&gt;&lt;SheetCorner class=&quot;FarPoint.Web.Spread.Model.DefaultSheetStyleModel&quot; Rows=&quot;1&quot; Columns=&quot;1&quot;&gt;&lt;AltRowCount&gt;2&lt;/AltRowCount&gt;&lt;DefaultStyle class=&quot;FarPoint.Web.Spread.NamedStyle&quot; Parent=&quot;CornerDefault&quot;&gt;&lt;Background class=&quot;FarPoint.Web.Spread.Background&quot;&gt;&lt;BackgroundImageUrl&gt;SPREADCLIENTPATH:/img/chbg.gif&lt;/BackgroundImageUrl&gt;&lt;SelectedBackgroundImageUrl&gt;SPREADCLIENTPATH:/img/chm.png&lt;/SelectedBackgroundImageUrl&gt;&lt;/Background&gt;&lt;/DefaultStyle&gt;&lt;ConditionalFormatCollections /&gt;&lt;/SheetCorner&gt;&lt;ColumnFooter class=&quot;FarPoint.Web.Spread.Model.DefaultSheetStyleModel&quot; Rows=&quot;1&quot; Columns=&quot;4&quot;&gt;&lt;AltRowCount&gt;2&lt;/AltRowCount&gt;&lt;DefaultStyle class=&quot;FarPoint.Web.Spread.NamedStyle&quot; Parent=&quot;ColumnFooterDefault&quot; /&gt;&lt;ConditionalFormatCollections /&gt;&lt;/ColumnFooter&gt;&lt;/StyleModels&gt;&lt;MessageRowStyle class=&quot;FarPoint.Web.Spread.Appearance&quot;&gt;&lt;BackColor&gt;LightYellow&lt;/BackColor&gt;&lt;ForeColor&gt;Red&lt;/ForeColor&gt;&lt;/MessageRowStyle&gt;&lt;SheetCornerStyle class=&quot;FarPoint.Web.Spread.NamedStyle&quot; Parent=&quot;CornerDefault&quot;&gt;&lt;Background class=&quot;FarPoint.Web.Spread.Background&quot;&gt;&lt;BackgroundImageUrl&gt;SPREADCLIENTPATH:/img/chbg.gif&lt;/BackgroundImageUrl&gt;&lt;SelectedBackgroundImageUrl&gt;SPREADCLIENTPATH:/img/chm.png&lt;/SelectedBackgroundImageUrl&gt;&lt;/Background&gt;&lt;/SheetCornerStyle&gt;&lt;AllowLoadOnDemand&gt;false&lt;/AllowLoadOnDemand&gt;&lt;LoadRowIncrement &gt;10&lt;/LoadRowIncrement &gt;&lt;LoadInitRowCount &gt;30&lt;/LoadInitRowCount &gt;&lt;TopRow&gt;0&lt;/TopRow&gt;&lt;PreviewRowStyle class=&quot;FarPoint.Web.Spread.PreviewRowInfo&quot; /&gt;&lt;/Presentation&gt;&lt;Settings&gt;&lt;Name&gt;Sheet1&lt;/Name&gt;&lt;Categories&gt;&lt;Appearance&gt;&lt;GridLineColor&gt;#d0d7e5&lt;/GridLineColor&gt;&lt;SelectionBorder class=&quot;FarPoint.Web.Spread.Border&quot; /&gt;&lt;HeaderGrayAreaColor&gt;#7999c2&lt;/HeaderGrayAreaColor&gt;&lt;SelectionBackColor&gt;PaleTurquoise&lt;/SelectionBackColor&gt;&lt;/Appearance&gt;&lt;Behavior /&gt;&lt;Layout&gt;&lt;RowHeaderColumnCount&gt;1&lt;/RowHeaderColumnCount&gt;&lt;ColumnHeaderRowCount&gt;1&lt;/ColumnHeaderRowCount&gt;&lt;/Layout&gt;&lt;/Categories&gt;&lt;ColumnHeaderRowCount&gt;1&lt;/ColumnHeaderRowCount&gt;&lt;ColumnFooterRowCount&gt;1&lt;/ColumnFooterRowCount&gt;&lt;TitleInfo class=&quot;FarPoint.Web.Spread.TitleInfo&quot;&gt;&lt;Style class=&quot;FarPoint.Web.Spread.StyleInfo&quot;&gt;&lt;BackColor&gt;#e7eff7&lt;/BackColor&gt;&lt;HorizontalAlign&gt;Right&lt;/HorizontalAlign&gt;&lt;/Style&gt;&lt;/TitleInfo&gt;&lt;LayoutTemplate class=&quot;FarPoint.Web.Spread.LayoutTemplate&quot;&gt;&lt;Layout&gt;&lt;ColumnCount&gt;4&lt;/ColumnCount&gt;&lt;RowCount&gt;1&lt;/RowCount&gt;&lt;/Layout&gt;&lt;Data&gt;&lt;LayoutData class=&quot;FarPoint.Web.Spread.Model.DefaultSheetDataModel&quot; rows=&quot;1&quot; columns=&quot;4&quot;&gt;&lt;AutoCalculation&gt;True&lt;/AutoCalculation&gt;&lt;AutoGenerateColumns&gt;True&lt;/AutoGenerateColumns&gt;&lt;ReferenceStyle&gt;A1&lt;/ReferenceStyle&gt;&lt;Iteration&gt;False&lt;/Iteration&gt;&lt;MaximumIterations&gt;1&lt;/MaximumIterations&gt;&lt;MaximumChange&gt;0.001&lt;/MaximumChange&gt;&lt;Cells&gt;&lt;Cell row=&quot;0&quot; column=&quot;0&quot;&gt;&lt;Data type=&quot;System.Int32&quot;&gt;0&lt;/Data&gt;&lt;/Cell&gt;&lt;Cell row=&quot;0&quot; column=&quot;1&quot;&gt;&lt;Data type=&quot;System.Int32&quot;&gt;1&lt;/Data&gt;&lt;/Cell&gt;&lt;Cell row=&quot;0&quot; column=&quot;2&quot;&gt;&lt;Data type=&quot;System.Int32&quot;&gt;2&lt;/Data&gt;&lt;/Cell&gt;&lt;Cell row=&quot;0&quot; column=&quot;3&quot;&gt;&lt;Data type=&quot;System.Int32&quot;&gt;3&lt;/Data&gt;&lt;/Cell&gt;&lt;/Cells&gt;&lt;/LayoutData&gt;&lt;/Data&gt;&lt;AxisModels&gt;&lt;LayoutColumn class=&quot;FarPoint.Web.Spread.Model.DefaultSheetAxisModel&quot; orientation=&quot;Horizontal&quot; count=&quot;4&quot;&gt;&lt;Items&gt;&lt;Item index=&quot;-1&quot;&gt;&lt;SortIndicator&gt;Ascending&lt;/SortIndicator&gt;&lt;/Item&gt;&lt;/Items&gt;&lt;/LayoutColumn&gt;&lt;LayoutRow class=&quot;FarPoint.Web.Spread.Model.DefaultSheetAxisModel&quot; orientation=&quot;Vertical&quot; count=&quot;1&quot;&gt;&lt;Items&gt;&lt;Item index=&quot;-1&quot; /&gt;&lt;/Items&gt;&lt;/LayoutRow&gt;&lt;/AxisModels&gt;&lt;/LayoutTemplate&gt;&lt;LayoutMode&gt;CellLayoutMode&lt;/LayoutMode&gt;&lt;/Settings&gt;&lt;/Sheet&gt;"
                            GridLineColor="#D0D7E5" SelectionBackColor="PaleTurquoise" SheetName="Sheet1">
                        </farpoint:SheetView>
                    </Sheets>
<TouchStrips>
<farpoint:TouchStrip Area="Chart" NoTouchStrip="True"></farpoint:TouchStrip>
</TouchStrips>

                    <TitleInfo BackColor="#E7EFF7" Font-Size="X-Large" ForeColor="" HorizontalAlign="Center"
                        VerticalAlign="NotSet">
                    </TitleInfo>
                   <ClientEvents SelectionChanged="SpreadActiveRowChanged" />
<TouchInfo SelectionGripperLineColor=""></TouchInfo>

                    <CommandBar BackColor="Transparent">
                        <Background BackgroundImageUrl="SPREADCLIENTPATH:/img/cbbg.gif" />
<Background BackgroundImageUrl="SPREADCLIENTPATH:/img/cbbg.gif"></Background>
                    </CommandBar>
                    <Pager PageCount="15" />
                </farpoint:FpSpread></td>
        </tr>
        <tr>
            <td colspan="5"  ><%--class="style4" Height=90px--%>
                <asp:Panel ID="FloatPanel" runat="server" Width="100%" Height="100%" 
                    Visible="false">
                    <farpoint:FpSpread ID="FpSpread_Error" runat="server" BorderColor="Black" BorderStyle="Solid"
                        BorderWidth="0px" Height="118px" Width="100%" ActiveSheetViewIndex="0" 
                        ClientAutoCalculation="True" style="margin-right: 0px" ><TitleInfo BackColor="#E7EFF7" ForeColor="" HorizontalAlign="Center" VerticalAlign="NotSet"
                            Font-Size="X-Large"></TitleInfo><CommandBar Visible="False" BackColor="Transparent"><Background BackgroundimageUrl="SPREADCLIENTPATH:/img/cbbg.gif"></Background></CommandBar><Sheets><farpoint:SheetView ColumnHeaderAutoText="Blank" DesignString="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;&lt;Sheet&gt;&lt;Data&gt;&lt;RowHeader class=&quot;FarPoint.Web.Spread.Model.DefaultSheetDataModel&quot; rows=&quot;0&quot; columns=&quot;1&quot;&gt;&lt;AutoCalculation&gt;True&lt;/AutoCalculation&gt;&lt;AutoGenerateColumns&gt;True&lt;/AutoGenerateColumns&gt;&lt;ReferenceStyle&gt;A1&lt;/ReferenceStyle&gt;&lt;Iteration&gt;False&lt;/Iteration&gt;&lt;MaximumIterations&gt;1&lt;/MaximumIterations&gt;&lt;MaximumChange&gt;0.001&lt;/MaximumChange&gt;&lt;/RowHeader&gt;&lt;ColumnHeader class=&quot;FarPoint.Web.Spread.Model.DefaultSheetDataModel&quot; rows=&quot;1&quot; columns=&quot;1&quot;&gt;&lt;AutoCalculation&gt;True&lt;/AutoCalculation&gt;&lt;AutoGenerateColumns&gt;True&lt;/AutoGenerateColumns&gt;&lt;ReferenceStyle&gt;A1&lt;/ReferenceStyle&gt;&lt;Iteration&gt;False&lt;/Iteration&gt;&lt;MaximumIterations&gt;1&lt;/MaximumIterations&gt;&lt;MaximumChange&gt;0.001&lt;/MaximumChange&gt;&lt;Cells&gt;&lt;Cell row=&quot;0&quot; column=&quot;0&quot;&gt;&lt;Data type=&quot;System.String&quot;&gt;提  示  信  息&lt;/Data&gt;&lt;/Cell&gt;&lt;/Cells&gt;&lt;/ColumnHeader&gt;&lt;DataArea class=&quot;FarPoint.Web.Spread.Model.DefaultSheetDataModel&quot; rows=&quot;0&quot; columns=&quot;1&quot;&gt;&lt;AutoCalculation&gt;True&lt;/AutoCalculation&gt;&lt;AutoGenerateColumns&gt;True&lt;/AutoGenerateColumns&gt;&lt;ReferenceStyle&gt;A1&lt;/ReferenceStyle&gt;&lt;Iteration&gt;False&lt;/Iteration&gt;&lt;MaximumIterations&gt;1&lt;/MaximumIterations&gt;&lt;MaximumChange&gt;0.001&lt;/MaximumChange&gt;&lt;SheetName&gt;提示信息表&lt;/SheetName&gt;&lt;/DataArea&gt;&lt;SheetCorner class=&quot;FarPoint.Web.Spread.Model.DefaultSheetDataModel&quot; rows=&quot;1&quot; columns=&quot;1&quot;&gt;&lt;AutoCalculation&gt;True&lt;/AutoCalculation&gt;&lt;AutoGenerateColumns&gt;True&lt;/AutoGenerateColumns&gt;&lt;ReferenceStyle&gt;A1&lt;/ReferenceStyle&gt;&lt;Iteration&gt;False&lt;/Iteration&gt;&lt;MaximumIterations&gt;1&lt;/MaximumIterations&gt;&lt;MaximumChange&gt;0.001&lt;/MaximumChange&gt;&lt;/SheetCorner&gt;&lt;ColumnFooter class=&quot;FarPoint.Web.Spread.Model.DefaultSheetDataModel&quot; rows=&quot;1&quot; columns=&quot;1&quot;&gt;&lt;AutoCalculation&gt;True&lt;/AutoCalculation&gt;&lt;AutoGenerateColumns&gt;True&lt;/AutoGenerateColumns&gt;&lt;ReferenceStyle&gt;A1&lt;/ReferenceStyle&gt;&lt;Iteration&gt;False&lt;/Iteration&gt;&lt;MaximumIterations&gt;1&lt;/MaximumIterations&gt;&lt;MaximumChange&gt;0.001&lt;/MaximumChange&gt;&lt;/ColumnFooter&gt;&lt;/Data&gt;&lt;Presentation&gt;&lt;ActiveSkin class=&quot;FarPoint.Web.Spread.SheetSkin&quot;&gt;&lt;Name&gt;Default&lt;/Name&gt;&lt;BackColor&gt;Empty&lt;/BackColor&gt;&lt;CellBackColor&gt;Empty&lt;/CellBackColor&gt;&lt;CellForeColor&gt;Empty&lt;/CellForeColor&gt;&lt;CellSpacing&gt;0&lt;/CellSpacing&gt;&lt;GridLines&gt;Both&lt;/GridLines&gt;&lt;GridLineColor&gt;LightGray&lt;/GridLineColor&gt;&lt;HeaderBackColor&gt;Empty&lt;/HeaderBackColor&gt;&lt;HeaderForeColor&gt;Empty&lt;/HeaderForeColor&gt;&lt;FlatColumnHeader&gt;False&lt;/FlatColumnHeader&gt;&lt;FlatRowHeader&gt;False&lt;/FlatRowHeader&gt;&lt;HeaderFontBold&gt;False&lt;/HeaderFontBold&gt;&lt;SelectionBackColor&gt;LightBlue&lt;/SelectionBackColor&gt;&lt;SelectionForeColor&gt;Empty&lt;/SelectionForeColor&gt;&lt;EvenRowBackColor&gt;Empty&lt;/EvenRowBackColor&gt;&lt;OddRowBackColor&gt;Empty&lt;/OddRowBackColor&gt;&lt;ShowColumnHeader&gt;True&lt;/ShowColumnHeader&gt;&lt;ShowRowHeader&gt;True&lt;/ShowRowHeader&gt;&lt;HeaderGrayAreaColor&gt;Empty&lt;/HeaderGrayAreaColor&gt;&lt;/ActiveSkin&gt;&lt;HeaderGrayAreaColor&gt;Empty&lt;/HeaderGrayAreaColor&gt;&lt;AxisModels&gt;&lt;Row class=&quot;FarPoint.Web.Spread.Model.DefaultSheetAxisModel&quot; defaultSize=&quot;22&quot; orientation=&quot;Vertical&quot; count=&quot;0&quot;&gt;&lt;Items&gt;&lt;Item index=&quot;-1&quot;&gt;&lt;Size&gt;22&lt;/Size&gt;&lt;/Item&gt;&lt;/Items&gt;&lt;/Row&gt;&lt;Column class=&quot;FarPoint.Web.Spread.Model.DefaultSheetAxisModel&quot; defaultSize=&quot;90&quot; orientation=&quot;Horizontal&quot; count=&quot;1&quot;&gt;&lt;Items&gt;&lt;Item index=&quot;-1&quot;&gt;&lt;Size&gt;90&lt;/Size&gt;&lt;SortIndicator&gt;Ascending&lt;/SortIndicator&gt;&lt;/Item&gt;&lt;Item index=&quot;0&quot;&gt;&lt;Size&gt;800&lt;/Size&gt;&lt;/Item&gt;&lt;/Items&gt;&lt;/Column&gt;&lt;RowHeaderColumn class=&quot;FarPoint.Web.Spread.Model.DefaultSheetAxisModel&quot; defaultSize=&quot;25&quot; orientation=&quot;Horizontal&quot; count=&quot;1&quot;&gt;&lt;Items&gt;&lt;Item index=&quot;-1&quot;&gt;&lt;Size&gt;25&lt;/Size&gt;&lt;SortIndicator&gt;Ascending&lt;/SortIndicator&gt;&lt;/Item&gt;&lt;/Items&gt;&lt;/RowHeaderColumn&gt;&lt;ColumnHeaderRow class=&quot;FarPoint.Web.Spread.Model.DefaultSheetAxisModel&quot; defaultSize=&quot;22&quot; orientation=&quot;Vertical&quot; count=&quot;1&quot;&gt;&lt;Items&gt;&lt;Item index=&quot;-1&quot;&gt;&lt;Size&gt;22&lt;/Size&gt;&lt;/Item&gt;&lt;/Items&gt;&lt;/ColumnHeaderRow&gt;&lt;ColumnFooterRow class=&quot;FarPoint.Web.Spread.Model.DefaultSheetAxisModel&quot; defaultSize=&quot;22&quot; orientation=&quot;Horizontal&quot; count=&quot;1&quot;&gt;&lt;Items&gt;&lt;Item index=&quot;-1&quot;&gt;&lt;Size&gt;22&lt;/Size&gt;&lt;SortIndicator&gt;Ascending&lt;/SortIndicator&gt;&lt;/Item&gt;&lt;/Items&gt;&lt;/ColumnFooterRow&gt;&lt;/AxisModels&gt;&lt;StyleModels&gt;&lt;RowHeader class=&quot;FarPoint.Web.Spread.Model.DefaultSheetStyleModel&quot; Rows=&quot;0&quot; Columns=&quot;1&quot;&gt;&lt;AltRowCount&gt;2&lt;/AltRowCount&gt;&lt;DefaultStyle class=&quot;FarPoint.Web.Spread.NamedStyle&quot; Parent=&quot;HeaderDefault&quot;&gt;&lt;BackColor&gt;Control&lt;/BackColor&gt;&lt;Border class=&quot;FarPoint.Web.Spread.Border&quot; Size=&quot;1&quot; Style=&quot;Solid&quot;&gt;&lt;Bottom Color=&quot;Black&quot; /&gt;&lt;Left Color=&quot;White&quot; /&gt;&lt;Right Color=&quot;Black&quot; /&gt;&lt;Top Color=&quot;White&quot; /&gt;&lt;/Border&gt;&lt;Font&gt;&lt;Name&gt;Arial&lt;/Name&gt;&lt;Names&gt;&lt;Name&gt;Arial&lt;/Name&gt;&lt;/Names&gt;&lt;Size&gt;9pt&lt;/Size&gt;&lt;Bold&gt;False&lt;/Bold&gt;&lt;Italic&gt;False&lt;/Italic&gt;&lt;Overline&gt;False&lt;/Overline&gt;&lt;Strikeout&gt;False&lt;/Strikeout&gt;&lt;Underline&gt;False&lt;/Underline&gt;&lt;/Font&gt;&lt;HorizontalAlign&gt;Center&lt;/HorizontalAlign&gt;&lt;/DefaultStyle&gt;&lt;ConditionalFormatCollections /&gt;&lt;/RowHeader&gt;&lt;ColumnHeader class=&quot;FarPoint.Web.Spread.Model.DefaultSheetStyleModel&quot; Rows=&quot;1&quot; Columns=&quot;1&quot;&gt;&lt;AltRowCount&gt;2&lt;/AltRowCount&gt;&lt;DefaultStyle class=&quot;FarPoint.Web.Spread.NamedStyle&quot; Parent=&quot;HeaderDefault&quot;&gt;&lt;BackColor&gt;Control&lt;/BackColor&gt;&lt;Border class=&quot;FarPoint.Web.Spread.Border&quot; Size=&quot;1&quot; Style=&quot;Solid&quot;&gt;&lt;Bottom Color=&quot;Black&quot; /&gt;&lt;Left Color=&quot;White&quot; /&gt;&lt;Right Color=&quot;Black&quot; /&gt;&lt;Top Color=&quot;White&quot; /&gt;&lt;/Border&gt;&lt;Font&gt;&lt;Size&gt;9pt&lt;/Size&gt;&lt;Bold&gt;False&lt;/Bold&gt;&lt;Italic&gt;False&lt;/Italic&gt;&lt;Overline&gt;False&lt;/Overline&gt;&lt;Strikeout&gt;False&lt;/Strikeout&gt;&lt;Underline&gt;False&lt;/Underline&gt;&lt;/Font&gt;&lt;HorizontalAlign&gt;Center&lt;/HorizontalAlign&gt;&lt;/DefaultStyle&gt;&lt;ConditionalFormatCollections /&gt;&lt;/ColumnHeader&gt;&lt;DataArea class=&quot;FarPoint.Web.Spread.Model.DefaultSheetStyleModel&quot; Rows=&quot;0&quot; Columns=&quot;1&quot;&gt;&lt;AltRowCount&gt;2&lt;/AltRowCount&gt;&lt;DefaultStyle class=&quot;FarPoint.Web.Spread.NamedStyle&quot; Parent=&quot;DataAreaDefault&quot; /&gt;&lt;AltRowStyles&gt;&lt;AltRowStyle Index=&quot;0&quot; class=&quot;FarPoint.Web.Spread.StyleInfo&quot;&gt;&lt;Font&gt;&lt;Name&gt;Arial&lt;/Name&gt;&lt;Names&gt;&lt;Name&gt;Arial&lt;/Name&gt;&lt;/Names&gt;&lt;Size&gt;9pt&lt;/Size&gt;&lt;Bold&gt;False&lt;/Bold&gt;&lt;Italic&gt;False&lt;/Italic&gt;&lt;Overline&gt;False&lt;/Overline&gt;&lt;Strikeout&gt;False&lt;/Strikeout&gt;&lt;Underline&gt;False&lt;/Underline&gt;&lt;/Font&gt;&lt;HorizontalAlign&gt;Left&lt;/HorizontalAlign&gt;&lt;/AltRowStyle&gt;&lt;AltRowStyle Index=&quot;1&quot; class=&quot;FarPoint.Web.Spread.StyleInfo&quot;&gt;&lt;Font&gt;&lt;Name&gt;Arial&lt;/Name&gt;&lt;Names&gt;&lt;Name&gt;Arial&lt;/Name&gt;&lt;/Names&gt;&lt;Size&gt;9pt&lt;/Size&gt;&lt;Bold&gt;False&lt;/Bold&gt;&lt;Italic&gt;False&lt;/Italic&gt;&lt;Overline&gt;False&lt;/Overline&gt;&lt;Strikeout&gt;False&lt;/Strikeout&gt;&lt;Underline&gt;False&lt;/Underline&gt;&lt;/Font&gt;&lt;/AltRowStyle&gt;&lt;/AltRowStyles&gt;&lt;ConditionalFormatCollections /&gt;&lt;/DataArea&gt;&lt;SheetCorner class=&quot;FarPoint.Web.Spread.Model.DefaultSheetStyleModel&quot; Rows=&quot;1&quot; Columns=&quot;1&quot;&gt;&lt;AltRowCount&gt;2&lt;/AltRowCount&gt;&lt;DefaultStyle class=&quot;FarPoint.Web.Spread.NamedStyle&quot; Parent=&quot;HeaderDefault&quot;&gt;&lt;BackColor&gt;#dedede&lt;/BackColor&gt;&lt;/DefaultStyle&gt;&lt;ConditionalFormatCollections /&gt;&lt;/SheetCorner&gt;&lt;ColumnFooter class=&quot;FarPoint.Web.Spread.Model.DefaultSheetStyleModel&quot; Rows=&quot;1&quot; Columns=&quot;1&quot;&gt;&lt;AltRowCount&gt;2&lt;/AltRowCount&gt;&lt;ConditionalFormatCollections /&gt;&lt;/ColumnFooter&gt;&lt;/StyleModels&gt;&lt;MessageRowStyle class=&quot;FarPoint.Web.Spread.Appearance&quot;&gt;&lt;BackColor&gt;LightYellow&lt;/BackColor&gt;&lt;ForeColor&gt;Red&lt;/ForeColor&gt;&lt;/MessageRowStyle&gt;&lt;SheetCornerStyle class=&quot;FarPoint.Web.Spread.NamedStyle&quot; Parent=&quot;HeaderDefault&quot;&gt;&lt;BackColor&gt;#dedede&lt;/BackColor&gt;&lt;/SheetCornerStyle&gt;&lt;AllowLoadOnDemand&gt;false&lt;/AllowLoadOnDemand&gt;&lt;LoadRowIncrement &gt;10&lt;/LoadRowIncrement &gt;&lt;LoadInitRowCount &gt;30&lt;/LoadInitRowCount &gt;&lt;TopRow&gt;0&lt;/TopRow&gt;&lt;PreviewRowStyle class=&quot;FarPoint.Web.Spread.PreviewRowInfo&quot; /&gt;&lt;/Presentation&gt;&lt;Settings&gt;&lt;Name&gt;提示信息表&lt;/Name&gt;&lt;Categories&gt;&lt;Appearance&gt;&lt;GridLineColor&gt;#d0d7e5&lt;/GridLineColor&gt;&lt;ColumnHeaderAutoText&gt;Blank&lt;/ColumnHeaderAutoText&gt;&lt;RowHeaderWidth&gt;25&lt;/RowHeaderWidth&gt;&lt;SelectionBorder class=&quot;FarPoint.Web.Spread.Border&quot; /&gt;&lt;HeaderGrayAreaColor&gt;Empty&lt;/HeaderGrayAreaColor&gt;&lt;SelectionBackColor&gt;#eaecf5&lt;/SelectionBackColor&gt;&lt;/Appearance&gt;&lt;Behavior /&gt;&lt;Layout&gt;&lt;RowHeaderColumnCount&gt;1&lt;/RowHeaderColumnCount&gt;&lt;ColumnCount&gt;1&lt;/ColumnCount&gt;&lt;ColumnHeaderRowCount&gt;1&lt;/ColumnHeaderRowCount&gt;&lt;RowCount&gt;0&lt;/RowCount&gt;&lt;/Layout&gt;&lt;/Categories&gt;&lt;ColumnHeaderRowCount&gt;1&lt;/ColumnHeaderRowCount&gt;&lt;ColumnFooterRowCount&gt;1&lt;/ColumnFooterRowCount&gt;&lt;TitleInfo class=&quot;FarPoint.Web.Spread.TitleInfo&quot;&gt;&lt;Style class=&quot;FarPoint.Web.Spread.StyleInfo&quot;&gt;&lt;BackColor&gt;#e7eff7&lt;/BackColor&gt;&lt;HorizontalAlign&gt;Right&lt;/HorizontalAlign&gt;&lt;/Style&gt;&lt;/TitleInfo&gt;&lt;LayoutTemplate class=&quot;FarPoint.Web.Spread.LayoutTemplate&quot;&gt;&lt;Layout&gt;&lt;ColumnCount&gt;4&lt;/ColumnCount&gt;&lt;RowCount&gt;1&lt;/RowCount&gt;&lt;/Layout&gt;&lt;Data&gt;&lt;LayoutData class=&quot;FarPoint.Web.Spread.Model.DefaultSheetDataModel&quot; rows=&quot;1&quot; columns=&quot;4&quot;&gt;&lt;AutoCalculation&gt;True&lt;/AutoCalculation&gt;&lt;AutoGenerateColumns&gt;True&lt;/AutoGenerateColumns&gt;&lt;ReferenceStyle&gt;A1&lt;/ReferenceStyle&gt;&lt;Iteration&gt;False&lt;/Iteration&gt;&lt;MaximumIterations&gt;1&lt;/MaximumIterations&gt;&lt;MaximumChange&gt;0.001&lt;/MaximumChange&gt;&lt;Cells&gt;&lt;Cell row=&quot;0&quot; column=&quot;0&quot;&gt;&lt;Data type=&quot;System.Int32&quot;&gt;0&lt;/Data&gt;&lt;/Cell&gt;&lt;Cell row=&quot;0&quot; column=&quot;1&quot;&gt;&lt;Data type=&quot;System.Int32&quot;&gt;1&lt;/Data&gt;&lt;/Cell&gt;&lt;Cell row=&quot;0&quot; column=&quot;2&quot;&gt;&lt;Data type=&quot;System.Int32&quot;&gt;2&lt;/Data&gt;&lt;/Cell&gt;&lt;Cell row=&quot;0&quot; column=&quot;3&quot;&gt;&lt;Data type=&quot;System.Int32&quot;&gt;3&lt;/Data&gt;&lt;/Cell&gt;&lt;/Cells&gt;&lt;/LayoutData&gt;&lt;/Data&gt;&lt;AxisModels&gt;&lt;LayoutColumn class=&quot;FarPoint.Web.Spread.Model.DefaultSheetAxisModel&quot; orientation=&quot;Horizontal&quot; count=&quot;4&quot;&gt;&lt;Items&gt;&lt;Item index=&quot;-1&quot;&gt;&lt;SortIndicator&gt;Ascending&lt;/SortIndicator&gt;&lt;/Item&gt;&lt;/Items&gt;&lt;/LayoutColumn&gt;&lt;LayoutRow class=&quot;FarPoint.Web.Spread.Model.DefaultSheetAxisModel&quot; orientation=&quot;Vertical&quot; count=&quot;1&quot;&gt;&lt;Items&gt;&lt;Item index=&quot;-1&quot; /&gt;&lt;/Items&gt;&lt;/LayoutRow&gt;&lt;/AxisModels&gt;&lt;/LayoutTemplate&gt;&lt;LayoutMode&gt;CellLayoutMode&lt;/LayoutMode&gt;&lt;/Settings&gt;&lt;/Sheet&gt;"
                                RowHeaderWidth="25" SheetName="提示信息表" DataSourceID="" GridLineColor="#D0D7E5" SelectionBackColor="#EAECF5"><ColumnHeader AutoText="Blank"></ColumnHeader><RowHeader Width="25"></RowHeader></farpoint:SheetView></Sheets></farpoint:FpSpread>
                </asp:Panel>
            </td>
        </tr>
    </table>
        
<%--<div id="Div1" class="ppWindow" 
			style="width: 410px; "  onmousedown="javascript:dargit(this,event);">
			<%--<table bgcolor="white"  border="1" width="100%" >
					<tr bgcolor="#eef8ff">						
						<td  align="center" style="height: 16px" >
							<div id="Div2"></div>							
						</td>
					</tr>					
			</table>
		</div>--%>
<%--		<script type="text/javascript" >
		    var ey = 0, ex = 0, lx = 0, ly = 0, canDrg = false, thiso = null; //
		    var x, y, rw, rh;
		    var divs = document.getElementsByTagName("div");
		    for (var i = 0; i < divs.length; i++) {
		        if (divs[i].id == "ppWindow1") {
		            divs[i].onmousemove = function () {
		                thismove(this); //实时得到当前对象与鼠标的值以判断拖动及关闭区域;
		            }
		            /*
		            var c=1;if(document.all)c=0;
		            divs[i].childNodes[c].onmousedown=function(){
		            dargit(this,event);
		            }
		            */
		            //divs[i].onmousedown=function(){
		            // st(this);
		            //} 
		        }
		    }

		    function thismove(o) {
		        rw = parseInt(x) - parseInt(o.style.left);
		        rh = parseInt(y) - parseInt(o.style.top);
		        document.title = rw + "=文本区域=" + rh;
		        if (rh <= 20 && rw >= 180) document.title = rw + "||20*20||" + rh; //右上角20*20的关闭区域
		        if (rh <= 20 && rw < 180) document.title = rw + "||可选||" + rh; //绝对拖动条选择区域;
		    }
		    function dargit(o, e) {
		        thiso = o;
		        if (thiso.style.visibility == "visible") {
		            canDrg = true;
		        }
		        if (!document.all) {
		            lx = e.clientX; ly = e.clientY;
		        } else {
		            lx = event.x; ly = event.y;
		        }
		        //if (document.all) thiso.setCapture();

		        st(o); //置前或置后		       
		    }

		    document.onmousemove = function (e) {
		        if (!document.all) { x = e.clientX; y = e.clientY; } else { x = event.x; y = event.y; }
		        if (canDrg) {
		            //if(rh<=20 && rw<180 ){//如果要设定拖动区域可以作判断
		            var ofsx = x - lx;
		            thiso.style.left = parseInt(thiso.style.left) + ofsx;
		            lx = x;
		            var ofsy = y - ly;
		            thiso.style.top = parseInt(thiso.style.top) + ofsy;
		            ly = y;
		            //}else{canDrg=false;}
		        }
		    }

		    document.onmouseup = function () {
		        canDrg = false; //拖拽变量设为false
		        if (document.all && thiso != null) {
		            //ie下，将清捕获;
		            thiso.releaseCapture();
		            thiso = null;
		        }
		    }


		    function set(obj) {
		        obj = obj.parentNode.parentNode;


		    }
		    function st(o) {

		        var p = o.parentNode;
		        if (p.lastChild != o) {
		            p.appendChild(o);
		        }

		        if (rh <= 20 && rw >= 180) {
		            canDrg = false;
		            //如果选择的是关闭区域;
		            window.status = rw + "|" + rh;
		            if (p.firstChild == o) return;
		            p.insertBefore(o, p.firstChild);
		        }
		    }
    </script>--%>
   
    </form>
</body>
</html>
